/**
 * 计划任.
 */
const Base = require('../base.js');
const models = require('../../utils/models');
const constants = require('../../utils/constants');

module.exports = class extends Base {
    /**
     * 匹配用户脸型。
     */
    async matchAction () {
        const matchModel = think.model(models.Match);
        await matchModel.matchOne();
    }

    /**
     * 明星档案数据抓取。
     */
    async crawlAction () {
        const crawlModel = think.model(models.Crawl);
        await crawlModel.start();
    }

    /**
     * 注册明星脸型。
     */
    async registerFacesAction () {
        const crawlModel = think.model(models.Crawl);
        await crawlModel.registerStars();
    }
};